<script setup lang="ts">
interface Props {
  isShow: boolean;
}
const props = withDefaults(defineProps<Props>(), {});

const private_key = localStorage.getItem('privateKey')

//展示内容弹窗
const showViewPrivate = ref(false);
</script>

<template>
  <password-confirm
      :is-show="props.isShow"
      :title="$t('setting.confirmPassword')"
      @close="$emit('close')"
      @confirm="showViewPrivate = true"
  ></password-confirm>

  <!-- again confirm -->
  <modal
      :is-show="showViewPrivate"
      :title="$t('setting.viewPrivateKey')"
      @close="showViewPrivate = false"
      @submit="showViewPrivate = false"
  >
    <div>{{ private_key }}</div>
  </modal>
</template>

<style scoped lang="scss">

</style>